//
//  WKWelcomeViewController.m
//  ourToken
//
//  Created by wakeup on 2018/5/29.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import "WKWelcomeViewController.h"
#import "WKBaseHeader.h"

@interface WKWelcomeViewController ()

@property (weak, nonatomic) IBOutlet UIButton *leapBtn;//跳过按钮
@property (weak, nonatomic) IBOutlet UIView *btcView;//比特币view
@property (weak, nonatomic) IBOutlet UIButton *foundBtcWalletBtn;//创建BTC钱包按钮
@property (weak, nonatomic) IBOutlet UIButton *loadBtcWalletBtn;//导入BTC钱包按钮

@property (weak, nonatomic) IBOutlet UIView *ethView;//以太坊view
@property (weak, nonatomic) IBOutlet UIButton *foundEthWalletBtn;//创建ETH钱包按钮
@property (weak, nonatomic) IBOutlet UIButton *loadEthWalletBtn;//导入ETH钱包按钮

@end

@implementation WKWelcomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self layoutUI];
    self.fd_interactivePopDisabled = YES;//禁用第三方手势识别器
}

- (void)layoutUI {
    
    self.leapBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
    [self.leapBtn setTitleColor:AppManager.themeColor forState:UIControlStateNormal];
    self.leapBtn.titleLabel.font = AppManager.btnFont;
    [self.leapBtn setImgViewStyle:ButtonImgViewStyleRight imageSize:CGSizeMake(7, 11) space:5];
    
    self.btcView.layer.cornerRadius = 10;
    self.btcView.layer.shadowOpacity = 0.5;
    self.btcView.layer.shadowColor = [UIColor grayColor].CGColor;
    self.btcView.layer.shadowRadius = 3;
    self.btcView.layer.shadowOffset = CGSizeMake(1, 1);
    
    self.foundBtcWalletBtn.backgroundColor = AppManager.themeColor;
    self.foundBtcWalletBtn.titleLabel.font = AppManager.btnFont;
    self.foundBtcWalletBtn.layer.cornerRadius = 5;
    self.foundBtcWalletBtn.layer.masksToBounds = YES;
    
    self.loadBtcWalletBtn.layer.cornerRadius = 5;
    self.loadBtcWalletBtn.layer.borderColor = [[UIColor grayColor] CGColor];
    self.loadBtcWalletBtn.layer.borderWidth = 1;
    self.loadBtcWalletBtn.backgroundColor = [UIColor whiteColor];
    self.loadBtcWalletBtn.titleLabel.font = AppManager.btnFont;
    [self.loadBtcWalletBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    
    
    self.ethView.layer.cornerRadius = 10;
    self.ethView.layer.shadowOpacity = 0.5;
    self.ethView.layer.shadowColor = [UIColor grayColor].CGColor;
    self.ethView.layer.shadowRadius = 3;
    self.ethView.layer.shadowOffset = CGSizeMake(1, 1);
    
    self.foundEthWalletBtn.backgroundColor = AppManager.themeColor;
    self.foundEthWalletBtn.titleLabel.font = AppManager.btnFont;
    self.foundEthWalletBtn.layer.cornerRadius = 5;
    self.foundEthWalletBtn.layer.masksToBounds = YES;
    
    self.loadEthWalletBtn.layer.cornerRadius = 5;
    self.loadEthWalletBtn.layer.borderColor = [[UIColor grayColor] CGColor];
    self.loadEthWalletBtn.layer.borderWidth = 1;
    self.loadEthWalletBtn.backgroundColor = [UIColor whiteColor];
    self.loadEthWalletBtn.titleLabel.font = AppManager.btnFont;
    [self.loadEthWalletBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    
}

//跳过
- (IBAction)clickLeapBtn:(id)sender {
    WKRootViewController *root = [[WKRootViewController alloc] init];
    [self.navigationController pushViewController:root animated:YES];
}

//创建BTC钱包
- (IBAction)clickFoundBtcWalletBtn:(id)sender {
    WKFoundWalletViewController1 *foundWallet1 = [[WKFoundWalletViewController1 alloc] init];
    foundWallet1.coinType = @"BTC";
    foundWallet1.isWelcome = YES;
    [self.navigationController pushViewController:foundWallet1 animated:YES];
}

//导入BTC钱包
- (IBAction)clickLoadBtcWalletBtn:(id)sender {
    WKLoadWalletViewController *loadWallet = [[WKLoadWalletViewController alloc] init];
    loadWallet.coinType = @"BTC";
    loadWallet.isWelcome = YES;
    [self.navigationController pushViewController:loadWallet animated:YES];
}

//创建ETH钱包
- (IBAction)clickFoundEthWalletBtn:(id)sender {
    WKFoundWalletViewController1 *foundWallet1 = [[WKFoundWalletViewController1 alloc] init];
    foundWallet1.coinType = @"ETH";
    foundWallet1.isWelcome = YES;
    [self.navigationController pushViewController:foundWallet1 animated:YES];
}

//导入ETH钱包
- (IBAction)clickFoadEthWalletBtn:(id)sender {
    WKLoadWalletViewController *loadWallet = [[WKLoadWalletViewController alloc] init];
    loadWallet.coinType = @"ETH";
    loadWallet.isWelcome = YES;
    [self.navigationController pushViewController:loadWallet animated:YES];
}


@end
